Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 13 - View Objects / View Objects Reference
View Objects Routines / Bounding in a View


Q3View_IsBoundingBoxVisible

You can use the Q3View_IsBoundingBoxVisible function to determine whether a bounding box is visible in a view (that is, whether it lies in the viewing frustum).

TQ3Boolean Q3View_IsBoundingBoxVisible (
TQ3ViewObject view, 
const TQ3BoundingBox *bbox);
view
A view.
bbox
A bounding box.
DESCRIPTION
The Q3View_IsBoundingBoxVisible function returns, as its function result, a Boolean value that indicates whether the bounding box specified by the bbox parameter is visible in the view specified by the view parameter (kQ3True) or is not visible (kQ3False). Q3View_IsBoundingBoxVisible transforms the specified bounding box by the view's local-to-world transform and then determines whether the box lies in the viewing frustum.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996